//企业消息
import React, {Component} from 'react'
import {
    View,
} from 'react-native';

import Cnews_top from './cnews_top'
import Cnews_body from './cnews_body'

export default class Newsall_c extends Component {
    render() {
        return (
            <View style={{flex: 1, backgroundColor: '#f6f6f6'}}>
                <Cnews_top navigation={this.props.navigation}/>
                <Cnews_body navigation={this.props.navigation}/>
            </View>
        )
    }

    componentWillUnmount() {
        if (this.props.navigation.state.params !== undefined && this.props.navigation.state.params.noReadCountE !== undefined) {
            this.props.navigation.state.params.noReadCountE();
        }
    }

}